package cn.itcast.nems.common.enumeration;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.List;

@AllArgsConstructor
@Getter
public enum DiscountVisibilityEnum {

    COMMON("通用", List.of(0)),

    ONLY_FINANCE("财务可见", List.of(0, 1)),

    PERSONAL("个人专属", List.of(2, 3)),

    ALL("所有", List.of(0, 1, 2, 3)),
    RELATIVES("员工亲属优惠", List.of(2)),
    ;
    /**
     * 描述
     */
    private final String desc;
    /**
     * 可见范围, 对应 cn.itcast.nems.discounts.dao.entiry.EmsDiscounts.visibility
     */
    private final List<Integer> visibilityList;

}
